package com.service.imp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.entity.User;
import com.mapper.UserMapper;
import com.service.UserService;

@Service(value = "UserServiceImp")
public class UserServiceImp implements UserService{
	@Autowired
	private UserMapper userMapper;
	
	@Override
	public User getUser(String id){
		User user = userMapper.getOne(id);
		return user;
	}

	@Override
	public void updateUser(User user) {
		userMapper.update(user);
	}
}
